/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.Gui;

import com.jme3.asset.AssetManager;
import com.jme3.scene.Node;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture2D;
import com.jme3.ui.Picture;

/**
 *
 * @author usuario
 */

public class HUD {
    
    Picture hudBase;
    
    public void initHud(AssetManager assetManager, Node guiNode) {   
        Texture tex = assetManager.loadTexture("Textures/hud.png");
        hudBase = new Picture("cursor");
        hudBase .setTexture(assetManager, (Texture2D) tex, true);
        hudBase .setWidth(tex.getImage().getWidth());
        hudBase.setHeight(tex.getImage().getHeight());
        guiNode.attachChild(hudBase);
        hudBase.setPosition(0, 0);
        
    }
    
}
